Other Classes
The following classes are available globally.
-
A bounding box represents a geographic region.
See moreDeclaration
Swift
@objc(MBCoordinateBounds) public class CoordinateBounds : NSObject, Codable
-
Options for calculating results from the Mapbox Directions service.
You do not create instances of this class directly. Instead, create instances of
See moreMatchOptions
orRouteOptions
.Declaration
Swift
@objc(MBDirectionsOptions) open class DirectionsOptions : NSObject, NSSecureCoding, NSCopying
-
A
DirectionsResult
represents a result returned from either the Mapbox Directions service.You do not create instances of this class directly. Instead, you receive
See moreRoute
orMatch
objects when you request directions using theDirections.calculate(_:completionHandler:)
orDirections.calculateRoutes(matching:completionHandler:)
method.Declaration
Swift
@objc(MBDirectionsResult) open class DirectionsResult : NSObject, NSSecureCoding
-
A single cross street along a step.
See moreDeclaration
Swift
@objc(MBIntersection) public class Intersection : NSObject, NSSecureCoding
-
A lane on the road approaching an intersection.
See moreDeclaration
Swift
@objc(MBLane) public class Lane : NSObject, NSSecureCoding
-
A component that represents a lane representation of an instruction.
See moreDeclaration
Swift
@objc(MBLaneIndicationComponent) open class LaneIndicationComponent : NSObject, ComponentRepresentable
-
A
RouteOptionsV4
object is a structure that specifies the criteria for results returned by the Mapbox Directions API v4.Pass an instance of this class into the
See moreDirections.calculate(_:completionHandler:)
method.Declaration
Swift
@objc(MBRouteOptionsV4) open class RouteOptionsV4 : RouteOptions
-
An instruction about an upcoming
RouteStep
’s maneuver, optimized for speech synthesis.The instruction is provided in two formats: plain text and text marked up according to the Speech Synthesis Markup Language (SSML). Use a speech synthesizer such as
AVSpeechSynthesizer
or Amazon Polly to read aloud the instruction.The
See moredistanceAlongStep
property is measured from the beginning of the step associated with this object. By contrast, thetext
andssmlText
properties refer to the details in the following step. It is also possible for the instruction to refer to two following steps simultaneously when needed for safe navigation.Declaration
Swift
@objc(MBSpokenInstruction) open class SpokenInstruction : NSObject, NSSecureCoding
-
The contents of a banner that should be displayed as added visual guidance for a route. The banner instructions are children of the steps during which they should be displayed, but they refer to the maneuver in the following step.
See moreDeclaration
Swift
@objc(MBVisualInstruction) open class VisualInstruction : NSObject, NSSecureCoding
-
A component of a
See moreVisualInstruction
that represents a single run of similarly formatted text or an image with a textual fallback representation.Declaration
Swift
@objc(MBVisualInstructionComponent) open class VisualInstructionComponent : NSObject, ComponentRepresentable